home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / ov_all.zip / TI594.ASC < prev    next >
Text File  |  1991-09-11  |  11KB  |  331 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  ObjectVision                           NUMBER  :  594
  9.   VERSION  :  1.0
  10.        OS  :  WIN
  11.      DATE  :  September 11, 1991                       PAGE  :  1/5
  12.  
  13.     TITLE  :  Guided completion in ObjectVision
  14.  
  15.  
  16.  
  17.  
  18.   ObjectVision's powerful decision trees and goal directed
  19.   prompting make it possible to control the sequence in which the
  20.   fields are used in an application.  Often this is produced by a
  21.   calculation which requires data on another form, or a different
  22.   section of the same form.  If no calculation is required, other
  23.   formulas may be substituted which will also change the order the
  24.   cursor travels in completing a form.
  25.  
  26.   See page 19 of the Tutorial manual, as well as "Ordering your
  27.   Fields" on page 28 (of the same manual) for additional
  28.   information about guided completion.  Also, the completed
  29.   tutorial MYORDER.OVD uses a decision tree on Sales Tax.  The
  30.   sales tax cannot be computed without data from the other form.
  31.   Examine the tree and compare the fields used in the tree to the
  32.   fields which appear on the Goal form.
  33.  
  34.   Controlling the sequence of the form:  When completing a form in
  35.   ObjectVision the fields are answered in order of their position
  36.   on the form, unless there is a tree which requires data from
  37.   another field.  To complete the calculation in the decision tree
  38.   the cursor will go to the field required to collect the necessary
  39.   data before it resumes its natural order of left to right, top to
  40.   bottom.  If that field is on a second form, the second form is
  41.   brought forward to collect the data required.
  42.  
  43.   For example, a form used for ordering product:
  44.  
  45.   Ship to:        Name            Bill To:        Name
  46.                   Address                         Address
  47.                   City, State Zip                 City, State Zip
  48.  
  49.   (Call the fields in the first block Name_1, Address_1,
  50.   City_st_zip_1, and the fields in the second block Name_2,
  51.   Address_2, City_st_zip_2.)
  52.  
  53.   ObjectVision's preferred pattern would be left to right top to
  54.   bottom:  Name_1, then on to Name_2, then to Address_1, then to
  55.   Address_2, and so on.  This is not what most users want when they
  56.   complete the form.  To control the goal directed prompting based
  57.   on the order of the fields, make an extra field at the top of the
  58.   form (or at least before the Name_2 field) and use a simple
  59.   conclusion of
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  ObjectVision                           NUMBER  :  594
  75.   VERSION  :  1.0
  76.        OS  :  WIN
  77.      DATE  :  September 11, 1991                       PAGE  :  2/5
  78.  
  79.     TITLE  :  Guided completion in ObjectVision
  80.  
  81.  
  82.  
  83.  
  84.    @AND(Name_1<>"",Address_1<>"",City_st_zip_1<>"",Name_2<>"",
  85.         Address_2<>"",City_st_zip_2<>"")
  86.  
  87.   (for printing purposes this was wrapped to a new line, in the
  88.   conclusion dialogue box it would appear as one long function
  89.   statement, all on one line).
  90.  
  91.   To make this field invisible to the users, choose Properties |
  92.   Field Type (from the Form Tool) turn display field name off, and
  93.   likewise turn the Properties | Border | Outline off, by removing
  94.   the X from the checkboxes.
  95.  
  96.   Now the new field (with the @AND formula) cannot be resolved
  97.   until it checks the fields used in its conclusion to see whether
  98.   or not they are blank.  Consequently, the fields will be
  99.   addressed in the order in which they were listed in the
  100.   conclusion.
  101.  
  102.   About the @AND function:  The @AND function is a logical function
  103.   -- it returns Yes if the conditions are true, and NO if the
  104.   conditions are false.  When @AND(FIELDNAME<>"") is used it
  105.   returns Yes if the FIELDNAME field has data, and No if the user
  106.   pressed return and left the field blank.  Pressing TAB, or
  107.   "mousing" to a different field leaves that field empty, and the
  108.   @AND formula will not be calculated.  Also, the @AND function
  109.   takes up to fourteen fields in its list.  If you need more than
  110.   fourteen fields, you may nest the @AND fields to accommodate up
  111.   to one hundred ninety six fields.  In other words, you may take
  112.   the @AND of fourteen @AND formulas.
  113.  
  114.   When testing new decision trees it is always wise to select Edit
  115.   | Clear all to be sure no previously entered data is left on the
  116.   form which may affect the calculated value.
  117.  
  118.   Goal directed prompting means the cursor travels to those fields
  119.   which require data.  When the first field has been answered the
  120.   return key will move the cursor to the next field.  Guided
  121.   completion will be interupted if the user presses TAB or uses the
  122.   mouse to select a field.  At that point the user may choose File
  123.   | Resume to restore guided completion.
  124.  
  125.   If a field has received an answer through a decision tree, a
  126.   link, or from user input, the field is skipped.  In the case of
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  ObjectVision                           NUMBER  :  594
  141.   VERSION  :  1.0
  142.        OS  :  WIN
  143.      DATE  :  September 11, 1991                       PAGE  :  3/5
  144.  
  145.     TITLE  :  Guided completion in ObjectVision
  146.  
  147.  
  148.  
  149.  
  150.   the multiple forms being selected from a menu, once the second
  151.   form has been completed, return to it either by clearing off the
  152.   form (to begin a new form), or to choose Form | Select from the
  153.   menu.  It would be possible using decision trees similar to those
  154.   discussed here to find a way to return to a completed form a
  155.   second time, but that is not addressed here.
  156.  
  157.   Launching a second form automatically when the first form is
  158.   complete:  Use the same technique described above, listing all of
  159.   the fields on the second form in a decision tree's conclusion.
  160.   Place the field with the decision tree after the last field on
  161.   the first form which needs to be completed.  When the cursor
  162.   reaches this last field, it will have to go to the second form
  163.   and get answers for the fields in the order in which they are
  164.   listed in the conclusion.
  165.  
  166.   Creating menus in ObjectVision to select other forms:  For this
  167.   example we will assume three forms: "Master Form" is the Goal
  168.   Form, a "Languages" form, and an "Applications" form are the
  169.   second and third form in the Stack of forms.  Only two choices
  170.   are offered in the "Menu" field in this example.  On the master
  171.   form are two fields, the first is called "Menu" which has the
  172.   following selections: Languages, and Applications.  The second
  173.   field is called "Driver" which does not have to be displayed,
  174.   just placed right after the "Menu" field.
  175.  
  176.   Use a selection list (or checkbox field) for the menu choice.  By
  177.   using one of these two field types you can limit the selections
  178.   the user could make.
  179.  
  180.   Step by step instructions for selecting a form from a menu:
  181.  
  182.   1.  Choose File | New from the menu
  183.  
  184.   2.  Choose Tools | Form
  185.         Name the form   Master Form
  186.  
  187.   3.  Choose Objects | Field <Add New Field>
  188.         Name the new field   Menu
  189.  
  190.   4.  Choose Objects | Field <Add New Field>
  191.         Name the new field   Driver
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  ObjectVision                           NUMBER  :  594
  207.   VERSION  :  1.0
  208.        OS  :  WIN
  209.      DATE  :  September 11, 1991                       PAGE  :  4/5
  210.  
  211.     TITLE  :  Guided completion in ObjectVision
  212.  
  213.  
  214.  
  215.  
  216.   5.  Select the field Menu and choose Properties | Field Type
  217.         Format Menu to be a Selection List
  218.           Use Languages and Applications as the two
  219.           selection list names and click on OK
  220.  
  221.   6.  Use Form | New to create two more forms, one called
  222.         Languages, and one called Applications.
  223.  
  224.   7.  On the Languages form create 3 fields, LANG1, LANG2 and LANG3
  225.  
  226.   8.  On the Applications form create 3 fields, APPS1, APPS2, and
  227.         APPS3
  228.  
  229.   9.  Choose Form | Select from the menu and return to Master Form
  230.  
  231.   10. Select the field Driver and choose Tools | Tree
  232.  
  233.   11. Choose Objects | Branch and branch on the Menu Field
  234.  
  235.   12. Choose Objects | Conclusion
  236.         The condition of Menu is Languages, the conclusion is the
  237.         following: @AND(LANG1<>"",LANG2<>"",LANG3<>"")
  238.  
  239.   13. Choose Objects | Conclusion
  240.          The 2nd condition of Menu is Applications, the conclusion
  241.          is:  @AND(APPS1<>"",APPS2<>"",APPS3<>"")
  242.  
  243.   14. Close the Tree tool. (Tree | Close)
  244.  
  245.   15. Close the Form Tool. Form | Close
  246.  
  247.   16. Choose Edit | Clear All to clear all fields on all forms
  248.       The Menu Form should appear on the screen.
  249.  
  250.   17. Choose from the menu.  The selected form should appear.
  251.       When the second form has been completed the cursor should
  252.       return to the Master Form.
  253.  
  254.   You may hide the Driver field so it does not display on the form
  255.   (but it must not be removed from the form).  To make the Driver
  256.   field invisible to the users, choose Properties | Field Type
  257.   (from the Form Tool) turn display field name off by checking the
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.   PRODUCT  :  ObjectVision                           NUMBER  :  594
  273.   VERSION  :  1.0
  274.        OS  :  WIN
  275.      DATE  :  September 11, 1991                       PAGE  :  5/5
  276.  
  277.     TITLE  :  Guided completion in ObjectVision
  278.  
  279.  
  280.  
  281.  
  282.   box, and likewise turn off the border display using Properties |
  283.   Border | Outline.
  284.  
  285.   The purpose of the "Driver" field is to check the menu choice
  286.   selected and cause the cursor to go to the desired form.  Goal
  287.   directed prompting will move the cursor from empty field to empty
  288.   field, in the order specified by the decision tree's conclusion.
  289.   In this case, once a choice is made in the Menu Field the cursor
  290.   moves to the Driver field.  The Driver field branches on the Menu
  291.   field -- checking to see which choice was made.  The branching is
  292.   based on the possible selections in the menu, the conclusions
  293.   address the fields on the form selected by the menu choice.
  294.  
  295.   In this example there are only two choices.  If the choice is
  296.   Applications (condition=Applications) then the cursor will go to
  297.   the fields which are referenced in the conclusion of that branch
  298.   of the tree.  The conclusion uses the @AND function and specifies
  299.   each field that needs an answer on the selected form. The @AND
  300.   formula checks to see if the fields on the specified form are
  301.   filled with data.  Until the user has either typed data into a
  302.   field, or pressed return, the @AND formula will not be evaluated.
  303.   To get an answer for the @AND formula the cursor must go to the
  304.   form which has the fields used in the formula.  The final
  305.   conclusion in the Driver field will be either Yes, the fields
  306.   have data, or No the user pressed return and left some, or all of
  307.   the fields blank.
  308.  
  309.   Once the selected form has been filled in the cursor will return
  310.   to the first form.
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.